package basic.com.liz.learn.design.command;

public class MyCommand implements Command
{
    private Receiver receiver;
    
    @Override
    public void exe()
    {
        System.out.println("收到命令!!!");
        receiver.action();
    }
    
    public MyCommand(Receiver receiver)
    {
        super();
        this.receiver = receiver;
    }
    
}
